<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/include/head.jsp"%>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, minimum-scale=1.0">
	<title>汕头大学|主页</title>
	<link rel="stylesheet" type="text/css" href="css/redeclare.css">
	<link rel="stylesheet" type="text/css" href="css/main.css">
</head>
<body>
	<!-- <form action="#" method="get" accept-charset="utf-8">
		<input type="text" id="search_content" placeholder="请输入活动名称" />
		<input type="submit" id="search_submit" />
	</form>
	<div id="setting_box">
		<div id="more">
			<span id="triangle"></span>
			<span id="operation">更多设置</span>
			<div class="clear"></div>
		</div>
		<ul id="setting_list">
			<li class="active">全部活动</li>
			<li>最近发布</li>
			<li>即将截止</li>
			<li>人数未满</li>
			<div class="clear"></div>
		</ul>
	</div> -->
	<div id="item_list" style="width:99%;height:570px;overflow:auto;">
		<c:forEach items="${list}" var="activity">
		<div class="item">
			<img style="width:30%;height:148px;margin:2px 0;" src="images/library.jpg" alt="">
			<ul	style="width:68%;height:148px;margin:2px 1%;">
				<!-- <span class="isBooking">未预约</span> -->
				<li>活动主题：<p><c:out value="${activity.activityName}"/></p></li>
				<li>活动时间：<p><c:out value="${activity.startTime}"/></p></li>
				<li>报名时间：<p><c:out value="${activity.applyDeadline}"/>前</p></li>
				<li>报名人数：<p><c:out value="${activity.maxNum}"/></p></li>
				<li>活动状态：<p><c:out value="${activity.status}"/></p></li>
				

				<form action="/booking.do" method="post">
					<input hidden="true" type="checkbox" name="activityID" value="${activity.activityID}"> 
            		<input type="submit" name="submit" value="我要参加"> 
				</form>

			</ul>
		</div>
		</c:forEach>
	</div>
</body>
</html>